package collection;

import java.util.Map;
import java.util.TreeMap;

/**
 * @Auther: 杨通通
 * @Date: 2024/11/21 23:12
 * @Description:
 */
public class map1 {

    public static void main(String[] args) {
        TreeMap<String,String> map =new TreeMap<>();
        map.put("b","a");
        map.put("a","a");
        Map.Entry<String, String> stringStringEntry = map.firstEntry();
        System.out.println(stringStringEntry.getKey());
    }
}